package com.movie.mybatis.mapper;

import com.movie.mybatis.pojo.Movie;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MovieMapper {
    Movie selectById(Integer id);
    List<Movie> selectAll();
    Movie selectByIdtoMovieRecord(Integer id);

    Integer updateById(
            @Param("movieName")String movieName,
            @Param("movieScore")Double movieScore,
            @Param("id")Integer id
    );

    Integer deleteById(Integer id);

    Integer insertMovie(Movie movie);
}
